package com.smart.lx.designPrinciples.ocp;

/**
 * 功能描述: <br>
 * 〈创建一个java课程〉
 *
 * @since: 1.0.0
 * @Author:abc
 * @Date: 2019/4/6
 */
public class JavaCourse implements ICourse {


    private Integer id;
    public String name;
    public Double price;

    public JavaCourse(Integer id, String name, Double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    @Override
    public Integer getId() {
        return this.id;
    }

    @Override
    public String getName() {
        return  this.name;
    }

    @Override
    public Double getPrice() {
        return this.price;
    }
}
